<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       
.content-box{
    width: 120px;
    height: 100px;
    border: 10px solid;
    padding: 10px;
    margin: 10px;
    box-sizing: content-box;
}
.border-box{
    box-sizing: border-box;
} 
    </style>
</head>
<body>
    <div class="content-box">content-box</div>
<!-- <div class="content-box border-box">border-box</div> -->
<script>
    const content=document.querySelector('.content-box');
    console.log(content.clientWidth);
</script>
</body>
</html>